<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>    
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<c:set var="contextPath" value="${pageContext.request.contextPath}" />
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>전자계산소 장애처리 접수</title>
</head>
<body>
	<dl>
		<dt>근로학생 목록</dt>
		<c:forEach var="worker" items="${workerList}">
			<dd>이름 : ${worker.name} | 학과 : ${worker.major} | 연락처 : ${worker.contactNumber} | <a href="${contextPath}/worker.do?method=d&workerNo=${worker.workerNo}">[${worker.name} 삭제]</a></dd>
		</c:forEach>
	</dl>
	
	<form:form commandName="worker">
		<dl>
			<dt>근로학생 등록</dt>
			<dd>이름 : <form:input path="name"/></dd>
			<dd>학과 : <form:input path="major"/></dd>
			<dd>연락처 : <form:input path="contactNumber"/></dd>
		</dl>
		<input type="submit" value="확인" />
	</form:form>
	
</body> 
</html>